package flexutils.logging {

    public class Level {

        public static const ALL:Level = new Level("all", int.MIN_VALUE);

        public static const TRACE:Level = new Level("trace", 0);

        public static const DEBUG:Level = new Level("debug", 100);

        public static const INFO:Level = new Level("info", 200);

        public static const WARN:Level = new Level("warn", 300);

        public static const ERROR:Level = new Level("error", 400);

        public static const FATAL:Level = new Level("fatal", 500);

        public static const OFF:Level = new Level("off", int.MAX_VALUE);

        private var lvInt:int;

        private var lvName:String;

        public function Level(name:String, lvInt:int) {
            this.lvInt = lvInt;
            this.lvName = name;
        }

        public function get name():String {
            return this.lvName;
        }

        public function get levelInt():int {
            return this.lvInt;
        }
    }
}